
	var yAxistitle = "日照(h)";
	var series = [{
		name: '降水量',
		data: [2.5, 1.5, 6.4, 9.2, 14.0, 6.0, 5.6],
		yAxis: 1
	}, {
		name: '最高温度',
		data: [23.6, 28.8, 28.5, 33.4, 26.0, 34.5, 35.0]
	}, {
		name: '最低温度',
		data: [18.9, 28.8, 19.3, 31.4, 17.0, 28.3, 29.0]
	}];
	var timeArray = ['1','2','3','4','5','6',' 7'];
	function getSpline(){ //创建折线图
		var chart = Highcharts.chart('container1', {
			title: {
					text: ''				
			},
			subtitle: {
				text: '过去七天实况天气图',	
				style: {
					color: '#ccc',
					fontSize: '13px'
				}
			},
			xAxis: {
				categories: timeArray,
			},
			yAxis: [{ // 第一条Y轴
				labels: {
				   format: '{value}',
				},
				title: {
					text: "温度(℃)",
				},
				opposite: true
			 }, { // 第二条Y轴
				title: {
					text: "降水量(mm)",
				},
				labels: {
				   format: '{value}', 
				},    
			}], 
			tooltip : {
				shared: true
			},
			credits: {
            	text: '',
            	href: ''
			},
			plotOptions: {
				series: {
					marker: {
						radius: 4,  //曲线点半径，默认是4
						symbol: 'diamond' //曲线点类型："circle", "square", "diamond", "triangle","triangle-down"，默认是"circle"
					}
				}
			},
			legend: {
					layout: 'vertical',
					align: 'center', //水平方向位置
					verticalAlign: 'top', //垂直方向位置
					x: 0, //距离x轴的距离
					y: 20 //距离Y轴的距离
			},
			series: series,
			responsive: {
					rules: [{
							condition: {
									maxWidth: 300
							},
							chartOptions: {
									legend: {
											layout: 'horizontal',
											align: 'center',
											verticalAlign: 'bottom'
									}
							}
					}]
			}
	});
	var chart1 = Highcharts.chart('container2', {
		title: {
				text: ''				
		},
		subtitle: {
			text: '未来七天天气趋势图',	
			style: {
				color: '#ccc',
				fontSize: '13px'
			}
		},
		xAxis: {
			categories: timeArray,
		},
		yAxis: [{ // 第一条Y轴
			labels: {
			   format: '{value}',
			},
			title: {
				text: "温度(℃)",
			},
			opposite: true
		 }, { // 第二条Y轴
			title: {
				text: "降水量(mm)",
			},
			labels: {
			   format: '{value}', 
			},    
		}], 
		tooltip : {
			shared: true
		},
		credits: {
			text: '',
			href: ''
		},
		plotOptions: {
			series: {
				marker: {
					radius: 4,  //曲线点半径，默认是4
					symbol: 'diamond' //曲线点类型："circle", "square", "diamond", "triangle","triangle-down"，默认是"circle"
				}
			}
		},
		legend: {
				layout: 'vertical',
				align: 'center', //水平方向位置
				verticalAlign: 'top', //垂直方向位置
				x: 0, //距离x轴的距离
				y: 20 //距离Y轴的距离
		},
		series: series,
		responsive: {
				rules: [{
						condition: {
								maxWidth: 300
						},
						chartOptions: {
								legend: {
										layout: 'horizontal',
										align: 'center',
										verticalAlign: 'bottom'
								}
						}
				}]
		}
});
}
	function setChart(){ //构造图表
		getSpline();
	}
	setChart();
	